package com.project_doctor.pojo.Dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AnnouncementDTO {
    private Long id;
    @NotBlank(message = "消息标题不能为空")
    private String messageTitle;
    @NotBlank(message = "消息内容不能为空")
    private String messageContent;
    @NotNull(message = "状态不能为空")
    private Integer status;
    @NotNull(message = "发布时间不能为空")
    private Date publishTime;
    private List<Long> receiverIds;
}
